package com.shawn.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "video")
public class Video implements Serializable {
    private static final long serialVersionUID = 3136732836884933873L;
    private ObjectId id;
    private Long vid;//视频id
    private Long userId;//发布者id
    private String picUrl;//封面图片地址
    private String videoUrl;//视频地址
    private Long created;//发布日期
    private Integer seeType;//视频审核,是否可见
    private String locationName;//发布视频地点
    private Integer likeCount;//视频点赞数
    private Integer commentCount;//评论数
    private Integer loveCount;//喜欢数
    private String text;//视频文案
}
